import request from "@/utils/request";

/**
 * 退单数据分页查询
 * @param {*} params 
 * @returns 
 */
export function refundsPageQuery(params) {
    return request({
        url: '/admin/refunds/pageQuery',
        method: 'post',
        data: params
    })
}
/**
 * 删除退单
 * @param {*} param 
 * @returns 
 */
export function deleteRefunds(param) {
    return request({
        url: `/admin/refunds/delete${param}`,
        method: 'delete'
    })
}

/**
 * 退单审批
 * @param {*} param 
 * @param {*} params 
 * @returns 
 */
export function auditRefunds(param, params) {
    return request({
        url: `/admin/refunds/auditRefunds/${param}`,
        method: 'put',
        data: params
    })
}